import request from '@/utils/request'

export default {
    // 未核销列表
    queryUnWriteOffList: function (params) {
        return request({
            url: '/shop/order/item/queryUnWriteOffList',
            method: 'post',
            data: params
        })
    },
    // 已核销列表
    queryWriteOffList: function (params) {
        return request({
            url: '/shop/order/item/queryWriteOffList',
            method: 'post',
            data: params
        })
    },
    // 核销
    writeOff: function (params) {
        return request({
            url: '/shop/order/item/writeOff',
            method: 'post',
            params
        })
    },
    // 设置核销比
    setWriteOffRate: function (params) {
        return request({
            url: '/shop/order/item/setWriteOffRate',
            method: 'post',
            params
        })
    },
    // 获取所有的创建者ID
    getSysUser: function () {
        return request({
            url: '/shop/order/item/getSysUser',
            method: 'get',

        })
    },
}
